/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-10-09
 * Time: 10:07
 */
public class Test {
    public static void main(String[] args) {
        TestHeap testHeap =  new TestHeap();
        int[] array = { 27,15,19,18,28,34,65,49,25,37 };

        testHeap.initElem(array);
        for (int x: testHeap.elem) {
            System.out.print(x+" ");
        }
        System.out.println();
        //大根堆的创建
        testHeap.createHeap();
        for (int x: testHeap.elem) {
            System.out.print(x+" ");
        }
        System.out.println();
//        testHeap.push(88);
//        for (int x: testHeap.elem) {
//            System.out.print(x+" ");
//        }
        System.out.println();
        System.out.println(testHeap.pop());
        System.out.println("=====");
    }
}
